<?php
/**
 * @copyright	Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
 * @license		GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$template_dir = $this->baseurl.'/templates/'.$this->template.'/';
jimport('mylibs.globalModel');
$globalModel = new globalModel();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
	<head>
    	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Alsace | Bringer menuen i balance</title>
        <link rel="shortcut icon" type="image/x-icon" href="<?php echo $template_dir;?>favicon.ico" />
        <link rel="shortcut icon" type="image/x-icon" href="<?php echo $template_dir;?>favicon.png" />	
        <link rel="stylesheet" type="text/css" media="screen" href="<?php echo $template_dir;?>css/reset.css" />
		<link rel="stylesheet" type="text/css" media="print" href="<?php echo $template_dir;?>css/print.css" />
		<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $template_dir;?>css/typography.css" />
        <link rel="stylesheet" type="text/css" media="screen" href="<?php echo $template_dir;?>css/styles.css" />
        <script type="text/javascript">
        function showPopup()
        {
        	document.getElementById('popup_mask').style.display = 'block';
            document.getElementById('popup_message').style.display = 'block';
        }
        function hidePopup()
        {
            document.getElementById('popup_mask').style.display = 'none';
            document.getElementById('popup_message').style.display = 'none';
        }
        </script>
	</head>
	<body>
		<!-- POPUP -->
	    <div id="popup_mask" style="display:none; width:100%; position:absolute; top:0px; left:0px; z-index:50; background:url(<?php echo $template_dir;?>img/t_bg_lightbox.png) repeat; height:100%;"></div>
	    
	    <div id="popup_message" style="width:950px;position:relative;margin:0 auto;z-index:5000; display:none;">
	        <div style="width:350px; height:165px; background:url(<?php echo $template_dir;?>img/t_bg_popup.jpg) top center no-repeat; position:absolute; top:200px; left:300px; text-align:center;">
	          <div style="width:330px; margin:0px auto; padding-top:10px;">
	            <div style="float: left;color:#007cc8;font-size:14px;">Nyhedsbrev tilmelding</div>
	            <div style="float: right;"><a href="javascript:hidePopup();"><img src="<?php echo $template_dir;?>img/t_close_but.jpg" alt="" /></a></div>
	            <div style="clear:both; height:0;"></div>
	          </div>
<!--	          <p style="font-size:18px; color:#FFFFFF; padding-top:35px; margin-bottom:20px;">-->
<!--	          	Email: <input type="text" name="email" id="email" value=""></input> -->
<!--	            </p>-->
					{module Acajoom Subscriber Module}
	          <a href="index.php?option=com_acajoom"><img src="<?php echo $template_dir;?>img/send_but.png" alt="" /></a> </div>
	    </div>
	    <!-- END POPUP -->
        <!--[if gt IE 7]><div class="ie ie8"><![endif]-->
        <!--[if IE 7]><div class="ie ie7"><![endif]-->
        <!--[if IE 6]><div class="ie ie6"><![endif]-->
        <!--[if lt IE 6]><div class="ie ie5"><![endif]-->
        <!--[if !IE]>--><div class="ie0"><!--<![endif]-->
		<script type="text/javascript" src="<?php echo $template_dir;?>js/get_nav.js"></script>
		    <!-- page content -->
            <div class="wrapper">
                <div id="page">
                    <!-- header -->
                    <div id="header">
                    	<h1 class="top-title f-left"><a href="index.php"><img src="<?php echo $template_dir;?>img/page_heading.png" alt="NYHEDER OM VINENE FRA  ALSACE" /></a></h1>
                        <h1 class="logo f-right"><a href="http://www.alsacevin.net" title="Alsace -  Bringer menuen i balance"><img src="<?php echo $template_dir;?>img/alsace_logo.png" alt="Alsace -  Bringer menuen i balance" /></a></h1>
                    </div>
                    <!-- / end header -->
    
                    <!-- Begin main content -->
                    <div id="main">
                    
                        <!-- Begin mid-content  -->
                        <div id="content-ctn">
                        	<div class="left-col f-left">
                            	<div class="col-inner">
                                    <h2>ARTIKLER</h2>
                                    <ul class="news-list">
                                    	<?php
                                    		$data = $globalModel->getAllArticle();   
                                    		foreach ( $data as $key=>$value ){                                 		
                                    	?>
                                        <li <?php if ( ($key==0 && !isset($_GET['id'])) || ($_GET['id']==$value['id']) ) { echo 'class="active"'; } ?>>
                                            <a href="index.php?option=com_content&view=article&id=<?php echo $value['id']?>">
                                            	<span class="news-title"><?php echo $value['title'];?></span>
                                                <span class="news-desc"><?php echo $globalModel->getShortText($value['introtext'],113); ?></span>
                                            </a>
                                        </li>                                        
                                        <?php
                                    		} 
                                        ?>                                     
                                    </ul>
                            	</div>
                            </div>
                            <div class="content-mid f-left">
                            	<div class="content-holder">
                                	<jdoc:include type="component" /> 
                                </div>
                            	
                            	
                            </div>
                            <div class="right-col f-left">
                            	<div class="col-inner">
                                	<div class="sponsor">
                                		<a href="http://www.franceagrimer.fr" title="France AgrilMer"><img src="<?php echo $template_dir;?>img/franceagrilmer.jpg" alt="France AgrilMer" /></a>
                                    	<a href="http://www.ambafrance-dk.org/" title="Frankrig i Danmark"><img src="<?php echo $template_dir;?>img/france_embassy.jpg" alt="Frankrig i Danmark" /></a>
                                    </div>
                                    <h2>Send til en ven</h2>
                                    <p>
                                    	Kender du nogen der er interreseret i vin? Så send denne videre. <a href="javascript:showPopup();">Klik her</a>
                                        <br/>
                                        <br/>
                                        <br/>
                                        <br/>
                                        <br/>
                                        <img src="<?php echo $template_dir;?>img/img_02.jpg" alt="" />
                                    </p>
                                </div>
                            </div>
                            <div class="clr"></div>
                               
                        </div>
                        <!-- /end mid-content  -->
                        
                    </div>
                    <!-- / end main content -->
                    
                    <!-- Begin footer -->
                    <div id="footer">
                        <p class="info fll">
                        <?php 
                        	$data = $globalModel->getArticle(314);
                        	echo $data['introtext'];
                        ?>
                        </p>
                    </div>
                    <!-- / end footer -->
                    
                </div>
            </div>
            <!--/ page content -->
    	</div> 
	</body>
</html>